package g11.dao;

import g11.model.Appointment;
import g11.model.Visitation;

public interface VisitationDAO {

	// !!the input parameter "Appointment" should be retrieved from DB, thus its
	// id is not null
	public void createVisitationFromAppointment(Appointment appointment)
			throws DAOException;

	// for test only
	public void createVisitationById(int visitationId) throws DAOException;

	public void deleteVisitation(Visitation visitation) throws DAOException;

	// for entry whose id = visitationId, change its currentversion to
	// currentVersion
	public void updateCurrentVersion(Visitation visitation) throws DAOException;

	// given visitationId, return its currentversion
	public Visitation getCurrentVersionOfVisitation(int visitationId)
			throws DAOException;

}
